<template>
  <div class="drop">
    <div class="container">
      <div class="left">
        <span>产品中心</span>
      </div>
      <div class="center">
        <div class="products">
          <div v-for="(item, index) in products" :key="index" class="product">
            <div class="title">
              <span
                ><router-link :to="item.url">{{
                  item.title
                }}</router-link></span
              >
              <img
                v-if="item.isNew"
                src="../../../assets/images/common/new.png"
                alt="new"
              />
              <img
                v-if="item.isHot"
                src="../../../assets/images/common/hot.png"
                alt="hot"
              />
            </div>
            <span class="introduce">{{ item.introduce }}</span>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="top"><router-link to="/">应用案例</router-link></div>
        <div class="bottom"><router-link to="/">交流合作</router-link></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "NavBottomCpn",
  props: { products: Array },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.drop {
  width: 100%;
  background-color: rgba(33, 45, 54, 0.9); /* 设置背景颜色为半透明 */
  box-shadow: -2px 8px 20px rgba(43, 62, 76, 0.7); /* 设置阴影 */
  color: #ffffff;
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 40px 0;
    .left {
      span {
        font-size: 23px;
        display: inline;
        letter-spacing: 5px;
        text-decoration: none;
        color: #ffffff;
        opacity: 0.5;
        cursor: pointer;
      }
    }
    .center {
      display: flex;
      box-sizing: border-box;
      padding-left: 50px;
      border-left: 3px solid rgba(255, 255, 255, 0.5);

      .products {
        display: flex;
        flex-wrap: wrap;
        width: 750px;
        .product {
          width: 150px;
          height: 50px;
          cursor: pointer;
          .title {
            span {
              font-size: 16px;
            }
          }
          .introduce {
            font-size: 12px;
            opacity: 0.5;
          }
        }
      }
    }
    .right {
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 100%;
      font-weight: 600;
      .top {
        margin: 15px 0;
      }
      .bottom {
        margin: 15px 0;
      }
    }
  }
}
a {
  font-size: 16px;
  display: inline;
  text-decoration: none;
  color: #fff;
}

a:hover {
  color: #31c46c !important;
}
</style>
